package com.szpx.dto;

/**
 * @author Wangtx
 * @version 1.0.0
 * @title Result
 * @create 2024/4/10 4:32
 * @description
 */
public class Result {
    private int code=0;
    private String msg="ok";
    private Object data;

    @Override
    public String toString() {
        return "Result{" +
                "code=" + code +
                ", msg='" + msg + '\'' +
                ", data=" + data +
                '}';
    }



    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }
    public Result() {
    }

    public Result(Object data) {
        this.data = data;
    }
    public static Result ok(){
        return new Result();
    }
    public static Result ok(Object data){
        return new Result(data);
    }
}
